.class Lcom/xingbook/park/activity/r;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method constructor <init>(Lcom/xingbook/park/activity/FamilyAct;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/r;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 5

    const/16 v2, 0xc8

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/xingbook/park/activity/r;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/activity/FamilyAct;

    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    iget v1, p1, Landroid/os/Message;->arg1:I

    if-ne v1, v2, :cond_0

    invoke-static {v0}, Lcom/xingbook/park/activity/FamilyAct;->a(Lcom/xingbook/park/activity/FamilyAct;)Lcom/xingbook/b/a;

    move-result-object v1

    iget v2, p1, Landroid/os/Message;->arg2:I

    iput v2, v1, Lcom/xingbook/b/a;->o:I

    invoke-virtual {v0}, Lcom/xingbook/park/activity/FamilyAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v1

    invoke-virtual {v1, v4}, Lcom/xingbook/c/n;->a(Z)V

    invoke-static {v0}, Lcom/xingbook/park/activity/FamilyAct;->b(Lcom/xingbook/park/activity/FamilyAct;)Lcom/xingbook/ui/ad;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/park/activity/FamilyAct;->a(Lcom/xingbook/park/activity/FamilyAct;)Lcom/xingbook/b/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/xingbook/b/a;->c()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    invoke-static {v0}, Lcom/xingbook/park/activity/FamilyAct;->b(Lcom/xingbook/park/activity/FamilyAct;)Lcom/xingbook/ui/ad;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->invalidate()V

    goto :goto_0

    :cond_0
    const-string v1, "\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u672a\u80fd\u4fee\u6539\u6210\u529f\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"

    invoke-static {v0, v1, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :pswitch_1
    iget v1, p1, Landroid/os/Message;->arg1:I

    if-ne v1, v2, :cond_1

    iget v1, p1, Landroid/os/Message;->arg2:I

    invoke-static {v0}, Lcom/xingbook/park/activity/FamilyAct;->a(Lcom/xingbook/park/activity/FamilyAct;)Lcom/xingbook/b/a;

    move-result-object v2

    shr-int/lit8 v3, v1, 0x2

    iput v3, v2, Lcom/xingbook/b/a;->d:I

    invoke-static {v0}, Lcom/xingbook/park/activity/FamilyAct;->a(Lcom/xingbook/park/activity/FamilyAct;)Lcom/xingbook/b/a;

    move-result-object v2

    and-int/lit8 v1, v1, 0x3

    iput v1, v2, Lcom/xingbook/b/a;->p:I

    invoke-virtual {v0}, Lcom/xingbook/park/activity/FamilyAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/xingbook/c/n;->a(Z)V

    goto :goto_0

    :cond_1
    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/xingbook/park/activity/FamilyAct;->a(Lcom/xingbook/park/activity/FamilyAct;Z)V

    const-string v1, "\u7531\u4e8e\u7f51\u7edc\u539f\u56e0\u672a\u80fd\u4fee\u6539\u6210\u529f\uff0c\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"

    invoke-static {v0, v1, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method
